package cn.edu.sgu.www.mhxysy.service.xingshi.impl;

import cn.edu.sgu.www.mhxysy.entity.xingshi.XingshiCategory;
import cn.edu.sgu.www.mhxysy.mapper.xingshi.XingshiCategoryMapper;
import cn.edu.sgu.www.mhxysy.service.xingshi.XingshiCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class XingshiCategoryServiceImpl implements XingshiCategoryService {

	private final XingshiCategoryMapper xingshiCategoryMapper;

	@Autowired
	public XingshiCategoryServiceImpl(XingshiCategoryMapper xingshiCategoryMapper) {
		this.xingshiCategoryMapper = xingshiCategoryMapper;
	}

	@Override
	public List<XingshiCategory> selectAll() {
		return xingshiCategoryMapper.selectList(null);
	}

	@Override
	public XingshiCategory selectById(Integer id) {
		return xingshiCategoryMapper.selectById(id);
	}

}